package dk.sensobyg.meta;

import java.net.URL;

public class SensorDescription {

	private long sensorid;
	private long typeid;
	private URL url;
	
	protected SensorDescription(long sensorid, long typeid, URL url) {
		this.sensorid = sensorid;
		this.typeid = typeid;
		this.url = url;
	}
	
	public long getSensorId() {
		return sensorid;
	}
	
	public long getTypeId() {
		return typeid;
	}
	
	public URL getURL() {
		return url;
	}
	
	@Override
	public String toString() {
		return "[sensorid=" + sensorid + "; typeid=" + typeid + "; url=" + url + "]";
	}
	
	@Override
	public boolean equals(Object o) {
		if(o==null) return false;
		if(o.getClass()!=getClass()) return false;
		SensorDescription s = (SensorDescription) o;
		return s.sensorid==sensorid;
	}
}
